<%-- 
    Document   : top_category
    Created on : Nov 27, 2011, 4:33:45 PM
    Author     : Ngoc Linh
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<div class="sidebar_panel">
    <p class="top_sidebar_panel">
        TOP DANH MỤC</p>
    <div class="content_sidebar_panel" id="category">
        <ul>
            <c:if test="${applicationScope.danhMucTop.size() > 0}">
                <c:forEach var="i" begin="0" end="${applicationScope.danhMucTop.size() - 1}" step="1">
                    <c:url value="listproduct.do" var="listproduct_link">
                        <c:param name="numberProducts" value="6" />
                        <c:param name="page" value="1" />
                        <c:param name="maDanhMuc" value="${applicationScope.danhMucTop[i].maDanhMuc}" />
                    </c:url>
                    <li><a href="${listproduct_link}">${applicationScope.danhMucTop[i].tenDanhMuc}</a></li>
                </c:forEach>                    
            </c:if>            
        </ul>
    </div>
</div>
